﻿using Microsoft.AspNetCore.Mvc;

namespace TodoList.ArdalisEndpoints.DTOs;

public class UpdateTodoItemRequest
{
	[FromRoute]
	public int Id { get; set; }
	
    [FromBody]
    public BodyModel Body { get; set; } = null!;
}

public class BodyModel
{
	public string Title { get; set; }= null!;

	public string Description { get; set; }= null!;

	public bool IsCompleted { get; set; }

	public DateTime DueDate { get; set; }
}
